{% extends "./component/_latout.html" %}

{% block content %}
<div id="wrapper">
    <!--左侧导航开始-->
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="nav-close">
            <i class="fa fa-times-circle"></i>
        </div>
        <div class="sidebar-collapse">
            <ul class="nav" id="side-menu">
                <li class="nav-header">
                    <div class="dropdown profile-element">
                        <span>
                            <img alt="image" class="img-circle" src="{{ ctx.session.userInfo.avatar }}" width="64" height="64"/>
                        </span>
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <span class="clear">
                                <span class="block m-t-xs">
                                    <strong class="font-bold">{{ ctx.session.userInfo.real_name }}</strong>
                                </span>
                                <span class="text-muted text-xs block">
                                    超级管理员 {# <b class="caret"></b> #}
                                </span>
                            </span>
                        </a>
                    </div>
                    <div class="logo-element">华渔</div>
                </li>
                <li>
                    <a class="J_menuItem" href="/admin/index" >
                        <i class="fa fa-home"></i>
                        <span class="nav-label">主页</span>
                    </a>
                </li>
                <li>
                    <a class="J_menuItem" href="/admin/banner/list">
                        <i class="fa fa-picture-o"></i>
                        <span class="nav-label">首页轮播</span>
                    </a>
                </li>
                <li>
                    <a class="J_menuItem" href="/admin/user/list" >
                        <i class="fa fa-user-circle-o"></i>
                        <span class="nav-label">用户</span>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <i class="fa fa-file-text-o"></i>
                        <span class="nav-label">文章</span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a class="J_menuItem" href="/admin/article/new">写文章</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="/admin/article/list">所有文章</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="/admin/articleType/list">分类目录</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a class="J_menuItem" href="/admin/resource/list">
                        <i class="fa fa-files-o"></i>
                        <span class="nav-label">资源文件库</span>
                        {# <span class="fa arrow"></span> #}
                    </a>
                    {# <ul class="nav nav-second-level">
                        <li>
                            <a class="J_menuItem" href="/admin/folder/list">资源文件夹</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="/admin/resource/list">资源库</a>
                        </li>
                        <li>
                            <a class="J_menuItem" href="/admin/resource/list">新版资源库</a>
                        </li>
                    </ul> #}
                </li>
                {# <li>
                    <a class="J_menuItem" href="/admin/visit">
                        <i class="fa fa-eye"></i>
                        <span class="nav-label">访问记录</span>
                    </a>
                </li> #}
                
            </ul>
        </div>
    </nav>
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="row border-bottom">
            <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                <div class="navbar-header">
                    <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#">
                        <i class="fa fa-bars"></i>
                    </a>
                </div>
                <ul class="nav navbar-top-links navbar-right">
                    <li class="hidden-xs">
                        <a href="/" target="_blank" data-index="0">
                            <i class="fa fa-globe"></i>
                            网站前台
                        </a>
                    </li>
                </ul>
            </nav>
        </div>
        <div class="row content-tabs">
            <button class="roll-nav roll-left J_tabLeft">
                <i class="fa fa-backward"></i>
            </button>
            <nav class="page-tabs J_menuTabs">
                <div class="page-tabs-content">
                    <a href="javascript:;" class="active J_menuTab" data-id="/admin/index">首页</a>
                </div>
            </nav>
            <button class="roll-nav roll-right J_tabRight">
                <i class="fa fa-forward"></i>
            </button>
            <div class="btn-group roll-nav roll-right">
                <button class="dropdown J_tabClose" data-toggle="dropdown">
                    关闭操作<span class="caret"></span>
                </button>
                <ul role="menu" class="dropdown-menu dropdown-menu-right">
                    <li class="J_tabShowActive">
                        <a>定位当前选项卡</a>
                    </li>
                    <li class="divider"></li>
                    <li class="J_tabCloseAll">
                        <a>关闭全部选项卡</a>
                    </li>
                    <li class="J_tabCloseOther">
                        <a>关闭其他选项卡</a>
                    </li>
                </ul>
            </div>
            <a href="/admin/logout" class="roll-nav roll-right J_tabExit">
                <i class="fa fa fa-sign-out"></i>
                退出
            </a>
        </div>
        <div class="row J_mainContent" id="content-main">
            <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="/admin/index" frameborder="0" data-id="/admin/index" seamless></iframe>
        </div>
        <div class="footer">
            <div class="pull-left">
                create by xiezuobing<948466>
            </div>
            <div class="pull-right">
                &copy;2017-2018
                <a href="/" target="_blank">华渔资源站</a>
            </div>
        </div>
    </div>
    <!--右侧部分结束-->

</div>
{% endblock %} 
{% block script %}
<script src="/public/admin/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="/public/admin/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="/public/admin/js/hplus.min.js?v=4.1.0"></script>
<script src="/public/admin/js/contabs.min.js"></script>
<script src="/public/admin/js/plugins/pace/pace.min.js"></script>
{% endblock %} 
